cmake_minimum_required(VERSION 3.8)
project(include_basic_use)

#list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/my_module")
#include(module1)

#include(./my_module/module1.cmake)
#include(./my_module/module2.cmake)
#include(./my_module/module2.cmake OPTIONAL)
include(./my_module/module1.cmake RESULT_VARIABLE var1)
message(STATUS "var1 = ${var1}")
include(./my_module/module2.cmake RESULT_VARIABLE var2)
message(STATUS "var2 = ${var2}")
include(./my_module/module2.cmake OPTIONAL RESULT_VARIABLE var3)
message(STATUS "var3 = ${var3}")
